package com.example.shop_addres.service.impl;

import com.example.shop_addres.entity.ShopAddress;
import com.example.shop_addres.mapper.ShopMapper;
import com.example.shop_addres.service.ShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ShopServiceImpl implements ShopService {
    @Autowired
    private ShopMapper shopMapper;

    @Override
    public int insertShopAddress(ShopAddress shopAddress) {
        return shopMapper.insertShopAddress(shopAddress);
    }

    @Override
    public ShopAddress getShopAddressByMobile(String mobile) {
        return shopMapper.getShopAddressByMobile(mobile);
    }

    @Override
    public int update(String mobile, String address) {
        return shopMapper.update(mobile, address);
    }

    @Override
    public int delete(String mobile) {
        return shopMapper.delete(mobile);
    }
}
